package org.pine.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 公共实体属性
 *
 * @author pine
 * @version v1.0
 * @since 2025-04-12 14:12
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CommonEntityFields<ID> extends BaseExtendFields<ID> implements Serializable {
    @Serial
    private static final long serialVersionUID = 5803415446934400367L;

    @Schema(description = "逻辑删除标识:0=未删除,1=已删除")
    private Integer deleted;

    @Schema(description = "乐观锁版本号")
    private Long version;
}
